namespace Arbol
{

	public class TtreeNode
	{

		/* ------ FIELDS ------ */

		/// <summary>
		/// The support associate with the itemset represented by the node. </summary>
		public int support = 0;

		/// <summary>
		/// A reference variable to the child (if any) of the node. </summary>
		public TtreeNode[] childRef = null;

		// Diagnostics
		/// <summary>
		/// The number of nodes in the T-tree. </summary>
		public static int numberOfNodes = 0;

		/* ------ CONSTRUCTORS ------ */	

		/// <summary>
		/// Default constructor </summary>

		public TtreeNode()
		{
		numberOfNodes++;
		}

		/// <summary>
		/// One argument constructor. </summary>
		/// <param name="sup"> the support value to be included in the structure.  </param>

		public TtreeNode(int sup)
		{
		support = sup;
		numberOfNodes++;
		}

		/* ------ METHODS ------ */

		public static int NumberOfNodes
		{
			get
			{
				return (numberOfNodes);
			}
		}
	}


}